<template>
  <div class="child-page">
    child---父组件的车：{{ car }}
    <div> 父组件的房子：{{ house }}</div>
    <button @click="editData(2)">使用</button>
  </div>
</template>
<script setup lang="ts" name="propsChild">
import { defineProps } from 'vue';

 defineProps(['house','car','editData']);

</script>
<style  scoped>
.child-page{
  padding: 20px 50px;
  height: 100px;
  background: green;
  color: #fff;
}
</style>
